//package cn.bonoon.kernel.web.handlers.loader;
//
//import cn.bonoon.handler.impl.StandardAutoManager;
//import cn.bonoon.kernel.events.ReadEvent;
//import cn.bonoon.kernel.support.searcher.StandardFinder;
//import cn.bonoon.kernel.web.annotations.AutoDataLoader;
//
///**
// * <pre>
// * 在弹出的对话框或tabs里定义的grid列表，然后使用自动加载数据
// * 被自动加载的数据也应该分为4种类型：
// * datagrid带分页
// * datagrid不带分页
// * treegrid全部加载
// * treegrid异步加载
// * </pre>
// * @author jackson
// *
// */
//public class ItemAutoLoaderHandler extends AbstractAutoLoaderHandler{
////	protected final EntityReader reader;
//	private final Class<?> resultClass;
//	public ItemAutoLoaderHandler(StandardAutoManager manager, Class<?> queryClass, AutoDataLoader loader, Class<?> resultClass) throws Exception {
//		super(manager, resultClass, queryClass, loader);
////		ApplicationContext applicationContext = manager.getApplicationContext();
////		this.reader = BytecodeFactory.reader(applicationContext, resultClass, entityDescriptor);
//		this.resultClass = resultClass;
//	}
//	
//	@Override
//	protected StandardFinder buildFinder(ReadEvent event) throws Exception {
//		return searcher.finder(autoManager, event, resultClass);//autoManager.buildeExtendFinder(reader, event);
//	}
//	
//	@Override
//	protected Object __parseResult(StandardFinder finder, ReadEvent event) {
//		return finder.getPage();
//	}
//}
